package com.ziki.bswicket.component;

import com.ziki.bswicket.model.BsModel;
import com.ziki.framework.wicket.markup.html.form.FwHiddenField;

public class BsHidden<T> extends FwHiddenField<T> {
    private static final long serialVersionUID = 1L;

    public BsHidden(String id) {
        super(id);
    }

    public BsHidden(String id, Class<T> type) {
        super(id, type);
    }

    public BsHidden(String id, String val) {
        super(id);
        setValue(val);
    }

    public void setValue(String val) {
        setDefaultModel(new BsModel<String>(val));
    }
}
